package cn.edu.whut.springbear.ifamily.genealogy.service.feign;

import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author Spring-_-Bear
 * @since 23/04/12 20:56
 */
@FeignClient("ifamily-acl")
public interface UserRoleFeignService {

    @PutMapping("/acl/feign/role/addUserRole")
    boolean addUserRole(@RequestParam("userId") Long userId,
                             @RequestParam("roleId") Long roleId);

    @PutMapping("/acl/feign/role/addUserRoleByName")
    boolean addUserRoleByName(@RequestParam("userId") Long userId,
                              @RequestParam("roleName") String roleName);
}
